# 配置消息代理的路径，如果是在远程服务器上，则配置远程服务器中redis的URL
broker_url = 'redis://:inetlabredis@39.102.44.159:6379/1'
#要存储 Celery 任务的状态或运行结果时就必须要配置
result_backend = 'redis://:inetlabredis@39.102.44.159:6379/2'

task_serializer = 'json'
result_serializer = 'json'
accept_content = ['json']
timezone = 'Asia/Shanghai'
enable_utc = True

# 注册异步任务
imports = ('celery_task.classify_task',
            'celery_task.imgprocess_task',
           'celery_task.chas_task',
           'celery_task.update_insects_task')
